<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class PatentFee extends Model
{
    protected $fillable = ['name','patent_sn','user_id','amount','last_time','payer','pay_time','bill_code','bill_number','state'];

    public function patent(): BelongsTo
    {
        return $this->belongsTo(Patent::class,'patent_sn','patent_sn');
    }

    public function apply(): BelongsTo
    {
        return $this->belongsTo(PatentApply::class,'patent_sn','patent_sn');
    }
}
